// Program: Some Calculator
// Description: Adds up two numbers and displays the result. 
// Author: Ali Koc
// Function: AddTwoNumbers
// Input: The first number
// Input: The second number
// Output: Sum of the two numbers

#include <iostream>
#include <cmath> 

using namespace std;

void VitasSavingsCalculator ()
{
	double InitialAmount;
	double Deposit;
	double Interest;
	int Years=0;
	int compounds;
	double Balance;

	// input
	cout << "CAUTION: This is a simple calculculator." << endl;
	cout << "Please enter the following information." << endl;
	cout << " Initial amount: " << endl;
	cin >> InitialAmount;
	cout << " Monthly Deposit: " << endl;
	cin >> Deposit;
	cout << "Annual interest: " << endl;
	cin >> Interest;
	cout << "Number of Years: " << endl;
	cin >> Years;
	cout << "Number of compounds per year: " << endl;
	cin >> compounds; 
	
	// processing
	Balance = (InitialAmount + (12*Deposit)) * ((1+ (pow((Interest/compounds),(Years*compounds)))));
	
	// output
	cout << "The total is $" << Balance << "." << endl;

	system("PAUSE");
}
